package com.hl.service;

import com.hl.domain.Interpersonalcommunication;
import com.hl.mapper.InterpersonalcommunicationMapper;
import com.hl.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: WenYong
 * @Date: 2024/9/4 19:27
 * @Version: 1.0
 */
@Service
// 智慧生活下的人际沟通
public class InterpersonalcommunicationService {
    @Autowired
    private InterpersonalcommunicationMapper interpersonalcommunicationMapper;

    /**
     *  查询数据
     * @Param
     * @Return
     */
    public List<Interpersonalcommunication> getAllInterpersonalcommunication(int page, int pageSize,int index,boolean status) {
        page = (page - 1) * pageSize;
        return interpersonalcommunicationMapper.findAll(page, pageSize,index,status);
    }

}
